package com.wing.cabinet.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.CheckedResultOrder;
import com.wing.cabinet.model.request.CheckedResultOrderForm;
import com.wing.cabinet.model.response.CheckedResultOrderVO;

import java.util.List;
import java.util.Map;

/**
 * 盘验结果生成的订单-Service
 *
 * @author
 */
public interface CheckedResultOrderService extends IService<CheckedResultOrder> {

    /**
     * 添加
     *
     * @param checkedResultOrderForm
     * @return
     */
    int add(CheckedResultOrderForm checkedResultOrderForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<CheckedResultOrderVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<CheckedResultOrderVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    CheckedResultOrderVO get4appById(Long id);

    void save(CheckedResultOrderForm checkedResultOrderForm);
}
